package com.youchuang.service;

import java.util.List;

import com.youchuang.bean.Book;
import com.youchuang.bean.Bulltion;
import com.youchuang.bean.Category;
import com.youchuang.bean.Comment;
import com.youchuang.bean.Product;

public interface MainService {

	public List<Category> findCategoryByParentId(String parentId);

	public List<Book> findBookLimmitByCategoryId(String ctegoryId, int begin, int size);

	public List<Book> findBookLimmitByCategoryIdHot(String ctegoryId, int begin, int size);

	public List<Book> findBookLimmitByCategoryIdNew(String ctegoryId, int begin, int size);

	public List<Product> findProductLimmitByRandom();

	public List<Book> findBookLimmitByProductName(String productName);

	public Book findBookById(String productId);

	public List<Comment> findCommentByProductId(String productId);

	public List<Bulltion> findBulltionByAll();

	public Bulltion findBulltionById(String id);

	public List<Product> findProductByHot();

	public List<Product> findProductByNew();

	public List<Product> findProductByNewHot(long time);

	public List<Category> findCategoryByAll();

	public int findCategoryProductCountByCategoryId(String categoryId);

}
